<form 
  action ='<?php echo url_for('usuario_garantia/filter') ?>' 
  id='form_filter_usuario_garantia' 
  name='form_filer_usuario_garantia' 
  method='POST' 
>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
      <tr>
        <th><?php echo $form['tp_garantia']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['tp_garantia']->render(
        			array(
        				'name' => 'filter[tp_garantia]',
        				'value' => $filter->get('tp_garantia')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['no_fiador']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_fiador']->render(
        			array(
        				'name' => 'filter[no_fiador]',
        				'value' => $filter->get('no_fiador')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['no_conjuge']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_conjuge']->render(
        			array(
        				'name' => 'filter[no_conjuge]',
        				'value' => $filter->get('no_conjuge')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['id_usuario']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['id_usuario']->render(
        			array(
        				'name' => 'filter[id_usuario]',
        				'value' => $filter->get('id_usuario')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['created_at']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['created_at']->render(
        			array(
        				'name' => 'filter[created_at]',
        				'value' => $filter->get('created_at')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['updated_at']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['updated_at']->render(
        			array(
        				'name' => 'filter[updated_at]',
        				'value' => $filter->get('updated_at')
        			)	
        		)
        	?>
        </td>
      </tr>
	<tr>
		<td colspan="2">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
			    if($filter->ativo()):
    				echo link_to(
    					':: Limpar ::',
    					$sf_context->getModuleName().'/filter',
    					array('class'=>'botao')
    				);
				endif;
			?>
		</td>
	</tr>
</table>
</form>